HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro
authorAdrian Bunk <bunk@debian.org>
Mon, 27 Oct 2025 18:54:02 +0000 (14:54 -0400)
committerDominique Belhachemi <domibel@debian.org>
Mon, 27 Oct 2025 18:54:02 +0000 (14:54 -0400)
Fixes building for Qt with OpenGL ES.

Gbp-Pq: Name 84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch

GUISupport/Qt/vtkQWidgetTexture.cxx

index e6a83c4299bb15226be611aa6cb49d28417998c6..e46f95ba04717726d2232c5087c3a332ad83a0df 100644 (file)
@@ -7,7 +7,7 @@
 #include "vtkOpenGLResourceFreeCallback.h"
 #include "vtkOpenGLState.h"
 
-#include "vtkOpenGLError.h"
+//#include "vtkOpenGLError.h"
 
 #include <QGraphicsProxyWidget>
 #include <QGraphicsScene>
@@ -88,7 +88,7 @@ vtkQWidgetTexture::vtkQWidgetTexture()
       }
 
       this->Create2DFromRaw(width, height, 4, VTK_UNSIGNED_CHAR, this->ImageBuffer);
-      vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw");
+      //vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw");
     }
   };
 }